﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExemploCadastro.aspx.cs" Inherits="Exemplos.Web.ExemploCadastro" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 79px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table style="width:100%;">
            <tr>
                <td class="style1">
                    <asp:Label ID="Label1" runat="server" Text="Nome :"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtNome" runat="server" style="margin-left: 0px"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Label ID="Label2" runat="server" Text="Área :"></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="ddlArea" runat="server" DataSourceID="EntityDataSource1" 
                        DataTextField="Descricao" DataValueField="ID">
                    </asp:DropDownList>
                    <asp:EntityDataSource ID="EntityDataSource1" runat="server" 
                        ConnectionString="name=DBUCNEntities" DefaultContainerName="DBUCNEntities" 
                        EnableFlattening="False" EntitySetName="TBAreas">
                    </asp:EntityDataSource>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1">
                    &nbsp;</td>
                <td>
                    <asp:Button ID="btnCadastrar" runat="server" onclick="btnCadastrar_Click" 
                        Text="Cadastrar" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
